import request from '@/utils/request'

// 查询产品模型列表
export function listProinfo(query) {
  return request({
    url: '/design/proinfo/list',
    method: 'get',
    params: query
  })
}

// 查询产品模型详细
export function getProinfo(id) {
  return request({
    url: '/design/proinfo/' + id,
    method: 'get'
  })
}

// 新增产品模型
export function addProinfo(data) {
  return request({
    url: '/design/proinfo',
    method: 'post',
    data: data
  })
}

// 修改产品模型
export function updateProinfo(data) {
  return request({
    url: '/design/proinfo',
    method: 'put',
    data: data
  })
}

// 删除产品模型
export function delProinfo(id) {
  return request({
    url: '/design/proinfo/' + id,
    method: 'delete'
  })
}

// 导出产品模型
export function exportProinfo(query) {
  return request({
    url: '/design/proinfo/export',
    method: 'get',
    params: query
  })
}